import React, { Component } from 'react'

import DataItem from './DataItem'

export default class DataList extends Component {
  render() {
    return (
      <div>
        <h3>数据展示(Fragment的应用)</h3>
        <table border="1" cellPadding="10" cellSpacing="0" width="50%">
          <thead>
            <tr>
              <th>序号</th>
              <th>名称</th>
            </tr>
          </thead>
          <tbody>
            {/* 展示数据 */}
            <DataItem></DataItem>
          </tbody>
        </table>
      </div>
    )
  }
}
